package cc.wanforme.chipmunity.system.po;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import cc.wanforme.chipmunity.common.consts.MessageEnum;

/**
 * @author wanne
 * 2019年8月16日
 * 
 */
public class Message implements Serializable{
	
	private static final long serialVersionUID = 1L;

	@TableId(type = IdType.AUTO)
	private Long id;
	
	private Long senderId;
	
	private Long receiverId;

	private String com;
	
	private String msg;
	
	private Boolean readed;
	
	private String state;
	
	private String type;
	
	private Date createTime;
	
	private Date readTime;

	public Message(Long senderId, Long receiverId, String com, String msg, String type) {
		super();
		this.senderId = senderId;
		this.receiverId = receiverId;
		this.com = com;
		this.msg = msg;
		this.type = type;
		
		this.readed = false;
		this.state = MessageEnum.STATE_ON.getValue();
		this.createTime = new Date();
		this.readTime = null;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getSenderId() {
		return senderId;
	}

	public void setSenderId(Long senderId) {
		this.senderId = senderId;
	}

	public Long getReceiverId() {
		return receiverId;
	}

	public void setReceiverId(Long receiverId) {
		this.receiverId = receiverId;
	}

	public String getCom() {
		return com;
	}

	public void setCom(String com) {
		this.com = com;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Boolean getReaded() {
		return readed;
	}

	public void setReaded(Boolean readed) {
		this.readed = readed;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getReadTime() {
		return readTime;
	}

	public void setReadTime(Date readTime) {
		this.readTime = readTime;
	}
	
	
	

}
